import request from '@/utils/request'

// 查询IC卡备案管理列表
export function listIcCardProfile(query) {
  return request({
    url: '/kmwlpts/icCardProfile/list',
    method: 'get',
    params: query
  })
}

export function searchListIcCardProfile(query) {
  return request({
    url: '/kmwlpts/icCardProfile/searchList',
    method: 'get',
    params: query
  })
}

// 查询IC卡备案管理详细
export function getIcCardProfile(id) {
  return request({
    url: '/kmwlpts/icCardProfile/' + id,
    method: 'get'
  })
}

// 新增IC卡备案管理
export function addIcCardProfile(data) {
  return request({
    url: '/kmwlpts/icCardProfile',
    method: 'post',
    data: data
  })
}

// 修改IC卡备案管理
export function updateIcCardProfile(data) {
  return request({
    url: '/kmwlpts/icCardProfile',
    method: 'put',
    data: data
  })
}

// 删除IC卡备案管理
export function delIcCardProfile(id) {
  return request({
    url: '/kmwlpts/icCardProfile/' + id,
    method: 'delete'
  })
}

// 导出IC卡备案管理
export function exportIcCardProfile(query) {
  return request({
    url: '/kmwlpts/icCardProfile/export',
    method: 'get',
    params: query
  })
}

// 检查IC卡是否已经存在
export function checkIcCardRepeat(data) {
  return request({
    url: '/kmwlpts/icCardProfile/checkIcCardRepeat',
    method: 'post',
    data: data
  })
}


//申报IC卡信息
export function declareIcCardProfile(id) {
  return request({
    url: '/kmwlpts/icCardProfile/declare/' + id,
    method: 'post'
  })
}

export function rebackIcCardProfile(id) {
  return request({
    url: '/kmwlpts/icCardProfile/reback/' + id,
    method: 'post'
  })
}

export function unBindBsIcCardProfile(id) {
  return request({
    url: '/kmwlpts/icCardProfile/unbindBs/' + id,
    method: 'post'
  })
}

